-- -- -- -- -- -- -- -- -- -- -- --
-- -- ENEMY -- -- -- -- -- -- -- -
-- -- -- -- -- -- -- -- -- -- -- --

-- load superclass


Enemy = Character:new{speed = 2,
	searchRange = 20
	
	} -- now, Character is just an Instance of Gameelement
-- enemy states






Enemy.currentState = States.default.running
Enemy.x = 0
Enemy.y = 0
Enemy.movementSpeed = 1
Enemy.experience = 0
Enemy.dmg = 0
Enemy.attackrange = 0
Enemy.attackrate = 0
Enemy.attacklimit = 0
Enemy.hp = 10
Enemy.dir = directions[math.random(1,8)]
Enemy.exp = 10
Enemy.wid = 5
Enemy.hig = 5
Enemy.attacklimit = 0
Enemy.oht = {}
Enemy.oht.x = 0
Enemy.oht.y = 0
Enemy.oht.text= 'oht text'
Enemy.oht.starttime = 0
Enemy.oht.status = 0
